﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;

/// <summary>
/// UserDefineShowColumnDAO 的摘要说明
/// </summary>
public class UserDefineShowColumnDAO
{
    SqlHelp help = new SqlHelp();
	public UserDefineShowColumnDAO()
	{
		//
		// TODO: 在此处添加构造函数逻辑
		//
	}

    public DataTable[] GetRolesColumnGroupAndNotShowStr(string userCode)
    {
        return help.RunProcGetTables("GetRolesColumnGroupAndNotShowStr", new SqlParameter[] { new SqlParameter("@UserCode", userCode) });
    }

    public DataTable[] GetGetInOutGroup_UserDefineShowColumn(string userCode, string rgCode)
    {
        return help.RunProcGetTables("GetInOutGroup_UserDefineShowColumn", new SqlParameter[] { new SqlParameter("@UserCode", userCode), new SqlParameter("@RGCode", rgCode) });
    }

    public int Add_Update_UserDefineShowColumn(string userCode, string columnTypes)
    {
        return help.RunProcInt("Add_Update_UserDefineShowColumn", new SqlParameter[] { new SqlParameter("@UserCode", userCode), new SqlParameter("@ColumnTypes", columnTypes) });
    }

    public DataTable GetInGroup_UserDefineShowColumn(string userCode, string rgCode, string condition)
    {
        return help.RunDataTableProc("GetInGroup_UserDefineShowColumn", new SqlParameter[] { new SqlParameter("@UserCode", userCode), new SqlParameter("@RGCode", rgCode), new SqlParameter("@@Condition", condition) });
    }
}
